package com.star.gc4.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.star.gc4.common.R;
import com.star.gc4.entity.Music;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface MusicService extends IService<Music> {
	R<String> addView(String id);
	R<String> save1(Music music);
	R<String> delete1(String[] index);
	R<String> uploadMusic1(MultipartFile music,Integer id) throws IOException;
	R<String> uploadLrc1(MultipartFile lrc,Integer id) throws IOException;
	R<Music> get1(Integer id);
	R<Page<Music>> list1(String keyword, int pageSize, int currentPage);
	R<Map> Lrc(String id) throws IOException;
}
